<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript" src="../../script/jquery-1.7.2.js"></script>
    <script type="text/javascript">
        $(function () {
            // $("<h1>标题2</h1>").appendTo($("div"));
            // $("<h1>标题1</h1>").prependTo($("div"));
            $("<h1>标题2</h1>").insertAfter($("div"));
            $("<h1>标题1</h1>").insertBefore($("div"));
        });
    </script>
</head>
<body>
    <div>abc</div>
</body>
</html>